import request from '@/utils/request'
export function fetchModelList(params) {
  return request({
    url:'/user/admin/model/modeList',
    method:'post',
    data:params
  })
}
export function fetchModelDetail(params) {
    return request({
      url:'/user/admin/model/modeDetails',
      method:'post',
      data:params
    })
}

export function fetchModelModelfy(params) {
    return request({
      url:'/user/admin/model/modeModify',
      method:'post',
      data:params
    })
}

export function fetchModelDelete(params) {
    return request({
      url:'/user/admin/model/modeDelete',
      method:'post',
      data:params
    })
}

export function fetchModelUpload(params) {
  return request({
    url:'/user/admin/mode/modeupload',
    method:'post',
    data:params,
    headers:{
      'Content-Type':'multipart/form-data'
    }
  })
}

export function fetchBatchModelUpload(params) {
    return request({
      url:'/user/admin/model/all/uploadModelList',
      method:'post',
      data:params,
      headers:{
        'Content-Type':'multipart/form-data'
      }
    })
}

export function fetchRemoveImage(params) {
  return request({
    url:'/user/admin/model/removeImage',
    method:'post',
    data:params,
  })
}

export function fetchModelOnline(params) {
    return request({
      url:'/user/admin/model/modeOnline',
      method:'post',
      data:params
    })
}
